// 积分商城
import request from '@/api/request';
//邀请好友
function friendList(data) {
  return request({
    url: '/api/user/friendList',
    method: 'post',
    data
  })
}
// 积分奖励
function myscore(data) {
  return request({
    url: '/api/score/myScore',
    method: 'post',
    data
  })
}
// 积分签到
function mysign(data) {
  return request({
    url: '/api/score/sign',
    method: 'post',
    data
  })
}
//商品列表
function shopList(data) {
    return request({
      url: '/api/score/scoreList',
      method: 'post',
      data
    })
}
// 商品详情
function shopInfo(data) {
  return request({
    url: '/api/score/detail',
    method: 'post',
    data
  })
}
// 商品结算列表
function playList(data) {
  return request({
    url: '/api/score/settle',
    method: 'post',
    data
  })
}
// 确认兑换
function sureSettle(data) {
  return request({
    url: '/api/score/sureSettle',
    method: 'post',
    data
  })
}
//兑换记录
function orderList(data) {
  return request({
    url: '/api/score/orderList',
    method: 'post',
    data
  })
}
//兑换详情
function orderDetail(data) {
  return request({
    url: '/api/score/orderDetail',
    method: 'post',
    data
  })
}
export default {
  shopList,
  shopInfo,
  playList,
  myscore,
  mysign,
  sureSettle,
  orderList,
  orderDetail,
  friendList
}